Optimal. Leaf size=87 \[ \frac{2 i \coth (c+d x)}{a d}+\frac{3 \tanh ^{-1}(\cosh (c+d x))}{2 a d}-\frac{3 \coth (c+d x) \text{csch}(c+d x)}{2 a d}+\frac{\coth (c+d x) \text{csch}(c+d x)}{d (a+i a \sinh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12336, antiderivative size = 87, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {2768, 2748, 3768, 3770, 3767, 8} \[ \frac{2 i \coth (c+d x)}{a d}+\frac{3 \tanh ^{-1}(\cosh (c+d x))}{2 a d}-\frac{3 \coth (c+d x) \text{csch}(c+d x)}{2 a d}+\frac{\coth (c+d x) \text{csch}(c+d x)}{d (a+i a \sinh (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2768
Rule 2748
Rule 3768
Rule 3770
Rule 3767
Rule 8
Rubi steps
\begin{align*} \int \frac{\text{csch}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx &=\frac{\coth (c+d x) \text{csch}(c+d x)}{d (a+i a \sinh (c+d x))}-\frac{\int \text{csch}^3(c+d x) (-3 a+2 i a \sinh (c+d x)) \, dx}{a^2}\\ &=\frac{\coth (c+d x) \text{csch}(c+d x)}{d (a+i a \sinh (c+d x))}-\frac{(2 i) \int \text{csch}^2(c+d x) \, dx}{a}+\frac{3 \int \text{csch}^3(c+d x) \, dx}{a}\\ &=-\frac{3 \coth (c+d x) \text{csch}(c+d x)}{2 a d}+\frac{\coth (c+d x) \text{csch}(c+d x)}{d (a+i a \sinh (c+d x))}-\frac{3 \int \text{csch}(c+d x) \, dx}{2 a}-\frac{2 \operatorname{Subst}(\int 1 \, dx,x,-i \coth (c+d x))}{a d}\\ &=\frac{3 \tanh ^{-1}(\cosh (c+d x))}{2 a d}+\frac{2 i \coth (c+d x)}{a d}-\frac{3 \coth (c+d x) \text{csch}(c+d x)}{2 a d}+\frac{\coth (c+d x) \text{csch}(c+d x)}{d (a+i a \sinh (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.41949, size = 90, normalized size = 1.03 \[ \frac{4 i \tanh (c+d x)+4 i \text{csch}(2 (c+d x))-3 \text{sech}(c+d x)+\text{csch}^2(c+d x) (-\text{sech}(c+d x))+3 \sqrt{\cosh ^2(c+d x)} \text{sech}(c+d x) \tanh ^{-1}\left (\sqrt{\cosh ^2(c+d x)}\right )}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 119, normalized size = 1.4 \begin{align*}{\frac{2\,i}{da} \left ( -i+\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}}+{\frac{{\frac{i}{2}}}{da}\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) }+{\frac{1}{8\,da} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}-{\frac{1}{8\,da} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-2}}+{\frac{{\frac{i}{2}}}{da} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}}-{\frac{3}{2\,da}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.15247, size = 213, normalized size = 2.45 \begin{align*} -\frac{8 \,{\left (-i \, e^{\left (-d x - c\right )} - 5 \, e^{\left (-2 \, d x - 2 \, c\right )} + 3 i \, e^{\left (-3 \, d x - 3 \, c\right )} + 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4\right )}}{{\left (8 \, a e^{\left (-d x - c\right )} - 16 i \, a e^{\left (-2 \, d x - 2 \, c\right )} - 16 \, a e^{\left (-3 \, d x - 3 \, c\right )} + 8 i \, a e^{\left (-4 \, d x - 4 \, c\right )} + 8 \, a e^{\left (-5 \, d x - 5 \, c\right )} + 8 i \, a\right )} d} + \frac{3 \, \log \left (e^{\left (-d x - c\right )} + 1\right )}{2 \, a d} - \frac{3 \, \log \left (e^{\left (-d x - c\right )} - 1\right )}{2 \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.6035, size = 640, normalized size = 7.36 \begin{align*} \frac{{\left (3 \, e^{\left (5 \, d x + 5 \, c\right )} - 3 i \, e^{\left (4 \, d x + 4 \, c\right )} - 6 \, e^{\left (3 \, d x + 3 \, c\right )} + 6 i \, e^{\left (2 \, d x + 2 \, c\right )} + 3 \, e^{\left (d x + c\right )} - 3 i\right )} \log \left (e^{\left (d x + c\right )} + 1\right ) -{\left (3 \, e^{\left (5 \, d x + 5 \, c\right )} - 3 i \, e^{\left (4 \, d x + 4 \, c\right )} - 6 \, e^{\left (3 \, d x + 3 \, c\right )} + 6 i \, e^{\left (2 \, d x + 2 \, c\right )} + 3 \, e^{\left (d x + c\right )} - 3 i\right )} \log \left (e^{\left (d x + c\right )} - 1\right ) - 6 \, e^{\left (4 \, d x + 4 \, c\right )} + 6 i \, e^{\left (3 \, d x + 3 \, c\right )} + 10 \, e^{\left (2 \, d x + 2 \, c\right )} - 2 i \, e^{\left (d x + c\right )} - 8}{2 \, a d e^{\left (5 \, d x + 5 \, c\right )} - 2 i \, a d e^{\left (4 \, d x + 4 \, c\right )} - 4 \, a d e^{\left (3 \, d x + 3 \, c\right )} + 4 i \, a d e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a d e^{\left (d x + c\right )} - 2 i \, a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.21453, size = 142, normalized size = 1.63 \begin{align*} \frac{3 \, \log \left (e^{\left (d x + c\right )} + 1\right )}{2 \, a d} - \frac{3 \, \log \left ({\left | e^{\left (d x + c\right )} - 1 \right |}\right )}{2 \, a d} - \frac{e^{\left (3 \, d x + 3 \, c\right )} - 2 i \, e^{\left (2 \, d x + 2 \, c\right )} + e^{\left (d x + c\right )} + 2 i}{a d{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{2}} - \frac{2 i}{a d{\left (i \, e^{\left (d x + c\right )} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]